package p270jp.pxv.android.model.pixiv_sketch;

import android.support.p024v4.media.C0261e;
import p325m0.MutabilityOwnership;

/* compiled from: GiftingMessage.kt */
/* renamed from: jp.pxv.android.model.pixiv_sketch.GiftingMessage */
/* loaded from: classes2.dex */
public final class GiftingMessage extends LiveWebSocketMessage {
    public static final int $stable;
    private final SketchLiveGiftingEntity gifting;

    public GiftingMessage(SketchLiveGiftingEntity sketchLiveGiftingEntity) {
        MutabilityOwnership.m3745m(sketchLiveGiftingEntity, LiveWebSocketMessage.TYPE_GIFTING);
        this.gifting = sketchLiveGiftingEntity;
    }

    public static /* synthetic */ GiftingMessage copy$default(GiftingMessage giftingMessage, SketchLiveGiftingEntity sketchLiveGiftingEntity, int i, Object obj) {
        if ((i & 1) != 0) {
            sketchLiveGiftingEntity = giftingMessage.gifting;
        }
        return giftingMessage.copy(sketchLiveGiftingEntity);
    }

    public final SketchLiveGiftingEntity component1() {
        return this.gifting;
    }

    public final GiftingMessage copy(SketchLiveGiftingEntity sketchLiveGiftingEntity) {
        MutabilityOwnership.m3745m(sketchLiveGiftingEntity, LiveWebSocketMessage.TYPE_GIFTING);
        return new GiftingMessage(sketchLiveGiftingEntity);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return (obj instanceof GiftingMessage) && MutabilityOwnership.m3749h(this.gifting, ((GiftingMessage) obj).gifting);
    }

    public final SketchLiveGiftingEntity getGifting() {
        return this.gifting;
    }

    public int hashCode() {
        return this.gifting.hashCode();
    }

    public String toString() {
        StringBuilder c = C0261e.m12042c("GiftingMessage(gifting=");
        c.append(this.gifting);
        c.append(')');
        return c.toString();
    }
}
